package me.idashu.attg.persistence;

import java.util.List;
import java.util.Map;

import me.idashu.attg.domain.NoteEntity;

public interface NoteMapper {
	public int noteCount();
	
	public List<NoteEntity> noteList(Map<String, Object> map);
	
	public void deleteNote(int noteId);
	
	public void insertNote(NoteEntity noteEntity);
	
	public List<NoteEntity> findAllNote(Map<String, Object> param);
	
	public int countNoteByContextId(int contextId);
	
	public int countNoteByUserId(int userId);
	
	public List<NoteEntity> findAllNoteByUserID(Map<String, Object> param);
	
	public List<NoteEntity> allNoteOrderByScore(Map<String, Object> param);
	
	public NoteEntity findNewNotesByUserId(long userId);
	
	public void upNote(int noteId);
	
	public void downNote(int noteId);
	
	public int countDataStatistics();
	
	public List<NoteEntity> noteDataStatistics(Map<String, Object> map);
}
